// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
// 引入全局样式文件
import './global/global.css';
import VueAMap from 'vue-amap';
import { lazyAMapApiLoaderInstance } from 'vue-amap';
import { Tab, Tabs, Row, Col, Button, Swipe, SwipeItem, Lazyload, List, Field, NavBar, PullRefresh,
  Stepper, Tabbar, TabbarItem, Uploader, AddressList, AddressEdit, Popup, GoodsAction,
  GoodsActionBigBtn, GoodsActionMiniBtn, NoticeBar, CouponList } from 'vant';
import 'vant/lib/vant-css/index.css';

Vue.config.productionTip = false;

Vue.use(Row).use(Col).use(Button).use(Swipe).use(SwipeItem).use(Lazyload).use(List).use(Field).use(NavBar)
  .use(Tab).use(Tabs).use(PullRefresh).use(Stepper).use(Tabbar).use(TabbarItem).use(Uploader).use(AddressList)
  .use(AddressEdit).use(Popup).use(GoodsAction).use(GoodsActionBigBtn).use(GoodsActionMiniBtn).use(NoticeBar)
  .use(CouponList);

// 加载高德地图组件
Vue.use(VueAMap);
VueAMap.initAMapApiLoader({
  key: 'fe3d9aa67912d247c80455d884f05057',
  plugin: ['ToolBar', 'MapType', 'Scale'], // 地图组件
})
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
